package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `json:"username"`
	Password string `json:"password"`
}
type UserRole struct {
	gorm.Model
	Uid int `json:"uid"`
	Rid int `json:"rid"`
}
type Role struct {
	gorm.Model
	RoleName string `json:"role_name"`
}
type RoleNode struct {
	gorm.Model
	Rid int `json:"rid"`
	Nid int `json:"nid"`
}
type Node struct {
	gorm.Model
	NodeName string `json:"node_name"`
}
type Good struct {
	gorm.Model
	GoodName string `json:"good_name"`
}
type OrderGood struct {
	gorm.Model
	Gid       int    `json:"gid"`
	OrderName string `json:"order_name"`
	OrderType string `json:"order_type"`
}
type ListOrder struct {
	Gid       int
	OrderName string
	OrderType string
	GoodName  string
}
